/**
 * 此文件配置路由信息
 * meta{
 *    title: 显示在面包屑和标签栏的文字
 *    hideInTab:(false) 设为true后页面在切换标签不会出现
 *    isNotClose:(false) 设为true 这个页面出现的tab标签不可以关闭。如果可以关闭  不需要添加
 *    isHideBreadcrumb:(false) 当前页面是否隐藏面包屑组件  默认都显示  如果指定页面不显示 则设置为true
 *    isActive:(false) 当前路由是否可以通过面包屑点击跳转 默认都可以点击跳转
 *    isNotOpen:true  页面是否不开放  默认开放  如果为true 则不开放
 *    keepAlive:false 是否缓存页面  默认不缓存
 * }
 */

import Main from '_c/Main';
export default [{
    path: '/homePage',
    name: 'homePage',
    component: () => import('@/views/HomePage.vue'),
},
{
    path: '/',
    name: '_home',
    component: Main,
    redirect: 'homePage',
    children: [{
        path: 'tenantMgmt',
        name: 'tenantMgmt',
        component: () => import('@/views/Tenant/tenantMgmt.vue'),
        meta: {
            title: '首页',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['首页']
        },
    },
    {
        path: 'tenantUserList',
        name: 'tenantUserList',
        component: () => import('@/views/Tenant/tenantUserList.vue'),
        meta: {
            title: '租户入住审批',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['运营管理', '租户入住审批']
        },
    },
    {
        path: 'tenantUserApply',
        name: 'tenantUserApply',
        component: () => import('@/views/Tenant/tenantUserApply.vue'),
        meta: {
            title: '租户申请审批',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['运营管理', '租户申请审批']
        },
    },
    {
        path: 'picturePreview',
        name: 'picturePreview',
        component: () => import('@/views/Algorithm/picturePreview.vue'),
        meta: {
            title: '公司',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['应用管理', '检测应用', '检测任务', '缺陷检测']
        },
    },
    {
        path: 'pictureImgDetails',
        name: 'pictureImgDetails',
        component: () => import('@/views/Algorithm/pictureImgDetails.vue'),
        meta: {
            title: '缺陷检测',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['应用管理', '检测应用', '检测任务', '缺陷检测']
        },
    },

    {
        path: 'appUsageList',
        name: 'appUsageList',
        component: () => import('@/views/AppShiYong/appUsageList.vue'),
        meta: {
            title: 'app使用',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['应用管理', '检测应用', '检测任务']
        },
    },

    {
        path: 'log',
        name: 'log',
        component: () => import('@/views/AppStore/log.vue'),
        meta: {
            title: '日志管理',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['日志管理']
        },
    },
    {
        path: 'shelvesApp',
        name: 'shelvesApp',
        component: () => import('@/views/YingYongGuanLi/shelvesApp.vue'),
        meta: {
            title: '上架管理',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['应用管理', '上架管理']
        },
    },
    {
        path: 'subscribeApp',
        name: 'subscribeApp',
        component: () => import('@/views/YingYongGuanLi/subscribeApp.vue'),
        meta: {
            title: '订阅管理',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['应用管理', '订阅管理']
        },
    },
    {
        path: 'verifyApp',
        name: 'verifyApp',
        component: () => import('@/views/YingYongGuanLi/verifyApp.vue'),
        meta: {
            title: '检测应用',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['应用管理', '检测应用']
        },
    },
    {
        path: 'projectMaintenance',
        name: 'projectMaintenance',
        component: () => import('@/views/YingYongGuanLi/projectMaintenance.vue'),
        meta: {
            title: '项目维护',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: [ '应用管理', '项目维护']
        },
    },
    {
        path: 'checkCraft',
        name: 'checkCraft',
        component: () => import('@/views/YingYongGuanLi/checkCraft.vue'),
        meta: {
            title: '检测工艺',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: [ '应用管理', '检测工艺']
        },
    },
    {
        path: 'defectIndex',
        name: 'defectIndex',
        component: () => import('@/views/DefectAnalysis/defectIndex.vue'),
        meta: {
            title: '缺陷综合分析',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['缺陷分析', '缺陷综合分析']
        },
    },

    {
        path: 'batchIndex',
        name: 'batchIndex',
        component: () => import('@/views/DefectAnalysis/batchIndex.vue'),
        meta: {
            title: '缺陷综合分析',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['缺陷分析', '缺陷批次分析']
        },
    },
    {
        path: 'projectAnalysis',
        name: 'projectAnalysis',
        component: () => import('@/views/DefectAnalysis/projectAnalysis.vue'),
        meta: {
            title: '项目综合分析', 
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['缺陷分析', '项目综合分析']
        },
    },
    {
        path: 'photoQuery',
        name: 'photoQuery',
        component: () => import('@/views/DefectAnalysis/photoQuery.vue'),
        meta: {
            title: '底片查询',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['缺陷分析', '底片查询']
        },
    },
    {
        path: 'projectReport',
        name: 'projectReport',
        component: () => import('@/views/DefectAnalysis/projectReport.vue'),
        meta: {
            title: '项目检测报告',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['缺陷分析', '项目检测报告']
        },
    },
    {
        path: 'equReport',
        name: 'equReport',
        component: () => import('@/views/DefectAnalysis/equReport.vue'),
        meta: {
            title: '设备检测报告',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['缺陷分析', '设备检测报告']
        },
    },
    {
        path: 'reportTPL',
        name: 'reportTPL',
        component: () => import('@/views/DefectAnalysis/reportTpl.vue'),
        meta: {
            title: '检测报告模板',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: [ '应用管理', '检测报告模板']
        },
    },
 


    {
        path: 'reportDetails',
        name: 'reportDetails',
        component: () => import('@/views/DefectAnalysis/reportDetails.vue'),
        meta: {
            title: '缺陷综合分析',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['应用管理', '检测应用', '检测报告']
        },
    },
    {
        path: 'reportPreview',
        name: 'reportPreview',
        component: () => import('@/views/DefectAnalysis/reportPreview.vue'),
        meta: {
            title: '缺陷综合分析',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['应用管理', '检测应用', '检测报告']
        },
    },
    {
        path: 'fieldAll',
        name: 'fieldAll',
        component: () => import('@/views/DefectAnalysis/fieldAll.vue'),
        meta: {
            title: '缺陷综合分析',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['缺陷分析', '检测报告模板', '字段集维护']
        },
    },
    {
        path: 'subscribeList',
        name: 'subscribeList',
        component: () => import('@/views/DIngYueGuanLi/subscribeList.vue'),
        meta: {
            title: '应用订阅',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['应用管理', '应用订阅']
        },
    },
    // 新增 
    {
        path: 'SheBeiBuWei',
        name: 'SheBeiBuWei',
        component: () => import('@/views/QueXianDengJi/SheBeiBuWei.vue'),
        meta: {
            title: '设备类型维护',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['缺陷等级判定规则', '设备类型维护']
        },
    },
    {
        path: 'HeiDuJianCe',
        name: 'HeiDuJianCe',
        component: () => import('@/views/QueXianDengJi/HeiDuJianCe.vue'),
        meta: {
            title: '黑度检测规则',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['缺陷等级判定规则', '黑度检测规则']
        },
    },
    {
        path: 'NegativeCut',
        name: 'NegativeCut',
        component: () => import('@/views/QueXianDengJi/NegativeCut.vue'),
        meta: {
            title: '底片截取规则',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['缺陷等级判定规则', '底片截取规则']
        },
    },
    {
        path: 'CaiZhiWeiHu',
        name: 'CaiZhiWeiHu',
        component: () => import('@/views/QueXianDengJi/CaiZhiWeiHu.vue'),
        meta: {
            title: '材质维护',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['缺陷等级判定规则', '材质维护']
        },
    },
    {
        path: 'QueXianLeiXing',
        name: 'QueXianLeiXing',
        component: () => import('@/views/QueXianDengJi/QueXianLeiXing.vue'),
        meta: {
            title: '缺陷类型维护',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['缺陷等级判定规则', '缺陷类型维护']
        },
    },
    {
        path: 'BuYunXuQueXian',
        name: 'BuYunXuQueXian',
        component: () => import('@/views/QueXianDengJi/BuYunXuQueXian.vue'),
        meta: {
            title: '各等级不允许缺陷规则',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['缺陷等级判定规则', '各等级不允许缺陷规则']
        },
    },
    {
        path: 'YuanXingQueXian',
        name: 'YuanXingQueXian',
        component: () => import('@/views/QueXianDengJi/YuanXingQueXian.vue'),
        meta: {
            title: '圆形缺陷规则',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['缺陷等级判定规则', '圆形缺陷规则']
        },
    },
    {
        path: 'TiaoXingQueXian',
        name: 'TiaoXingQueXian',
        component: () => import('@/views/QueXianDengJi/TiaoXingQueXian.vue'),
        meta: {
            title: '条形缺陷规则',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['缺陷等级判定规则', '条形缺陷规则']
        },
    },
    {
        path: 'ZongHePingJi',
        name: 'ZongHePingJi',
        component: () => import('@/views/QueXianDengJi/ZongHePingJi.vue'),
        meta: {
            title: '综合评级规则',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['缺陷等级判定规则', '综合评级规则']
        },
    },
    {
        path: 'WeiHanTouQueXian',
        name: 'WeiHanTouQueXian',
        component: () => import('@/views/QueXianDengJi/WeiHanTouQueXian.vue'),
        meta: {
            title: '综合评级规则',
            isNotClose: true,
            isHideBreadcrumb: true,
            crumbs: ['缺陷等级判定规则', '未焊透缺陷规则']
        },
    },
    ],
},
{
    path: '/login',
    name: 'login',
    component: () => import('@/views/Login.vue'),
},
{
    path: '/agent',
    name: 'agent',
    component: () => import('@/views/agent.vue'),
},
{
    path: '/register',
    name: 'register',
    component: () => import('@/views/register/register.vue'),
},
];